package br.com.dataphonebr.dao.impl;

import java.util.List;

import br.com.dataphonebr.exception.PersistenceException;

import android.database.sqlite.SQLiteDatabase;

public interface GenericDao<E>{
	
	public void createTable(SQLiteDatabase db);
	
	public void dropTable(SQLiteDatabase db);

	public void alterTable(SQLiteDatabase db);
	
	public Long insert(E entity) throws PersistenceException;

	public void update(E entity, Long id) throws PersistenceException;

	public void delete(Long id);

	public E selectById(Long id);

	public List<E> selectAll();
	
	public String getColumnHack();

}